public abstract class Algorithm extends java.lang.Object implements Processable<Graph,Graph>
| Modifier and Type | Field and Description |
|---|---|
ArgumentsBundle |
args
The ArgumentsBundle object holding arguments for the algorithm.
|
(package private) int |
counter |
(package private) CommunicationListener |
listener |
private java.beans.PropertyChangeSupport |
mPCS
Adds Property Change support to track the progress of algorithms.
|
private double |
progress
The current progress of the algorithm.
|
static java.lang.String |
PROP_PROGRESS
Constant for indicating the progress property.
|
| Constructor and Description |
|---|
Algorithm(ArgumentsBundle args)
Public Constructor for creating an Algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Adds a PropertyChangeListener.
|
private boolean |
compare(Graph base,
Graph match)
Compares the two graphs based on edges.
|
protected java.util.ArrayList<Graph> |
cull(java.util.ArrayList<Graph> subGraphs)
Removes duplicate subGraphs from the provided ArrayList.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Removes a PropertyChangeListener.
|
private boolean |
reorder(Graph base,
Graph match)
Deprecated.
No replacement. There is no longer a need to reorder graphs
to test equality.
|
protected void |
setProgress(double progress) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessCommunicationListener listener
int counter
public final ArgumentsBundle args
private java.beans.PropertyChangeSupport mPCS
private double progress
public static final java.lang.String PROP_PROGRESS
public Algorithm(ArgumentsBundle args)
args - the ArgumentsBundle containing the arguments for the
Algorithm object.protected final java.util.ArrayList<Graph> cull(java.util.ArrayList<Graph> subGraphs)
subGraphs - the ArrayList containing the subGraphs to remove
duplicates from.private boolean reorder(Graph base, Graph match)
base - the Graph object (smaller) to base ordering on.match - the Graph object (larger) to reorder.private boolean compare(Graph base, Graph match)
base - the Graph object (smaller) to match.match - the Graph object (larger) to test against.protected void setProgress(double progress)
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl - the PropertyChangeListener.public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl - the PropertyChangeListener.